package com.example.sys.login

import com.example.lib_common.mvi.BaseRepository
import com.example.lib_common.mvi.ResponseEntity
import com.example.network_sdk.HttpType
import com.example.network_sdk.NetWorkFactory
import com.example.sys.ApiService
import kotlinx.coroutines.flow.Flow

class LoginRepository : BaseRepository() {
    fun requestSign(map: HashMap<String, Any>): Flow<ResponseEntity<LoginEntity>> {
        return NetWorkFactory.factory(HttpType.SIGN)!!
            .create(ApiService::class.java)
            .requestLogin(createBody(map))
    }
}